package com.example.common.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.common.core.service.BaseService;
import com.example.common.system.entity.RoleEntity;
import com.example.common.util.PageUtils;
import com.example.common.system.entity.UserEntity;

import java.util.List;

/**
 * 系统用户表
 *
 * @author chen
 * @email 17635014889@163.com
 * @date 2022-09-19 17:27:28
 */
public interface UserService extends BaseService<UserEntity> {

    /**
     * 分页查询
     * @param page
     * @param userEntity
     * @return
    */
    PageUtils queryPage(Page<UserEntity> page, UserEntity userEntity);

    UserEntity queryByUserName(String username);

    List<RoleEntity> getRolesByUid(Long id);

    Integer updateByUserName(String username, String newPassword);
}

